Add support for encoding only characters outside of the ASCII range

Useful before converting UTF-8 to other, potentially less compatible, encodings