renamed get_encoding() to get_content_transfer_encoding()