Normalizing strings as they are converted to UTF-8