Use codecs to handle UTF-8 encoding, global find/replace