Make sure to use decoded_content (just in case of compression, etc) and also use non-utf8'ed ->decode method