Use codecs to avoid coding exceptions when handling UTF-8 accented characters