Fixing make-generated-input-port for non-ascii chars.