Fix non-unicode input.