Corrected bugs with %w and %f escapes that cut off the last byte of output