UTF-8 encode the output.