decode bytestrings rather than calling str.text_type() on them