It replaces invalid chars with spaces. So the resulting sequences may not all be of the same length. It should allow a replacement character to be specified, and if the empty string is given it should print a warning to stderr if it produces strings that are less than the window length.