jai: Convert to valid UTF-8