Use codecs.register and remove the _sys. (Thanks /u/bramblerose)