Well I tried and came up with something like this:
check the type of the content and if its 'str' use the regular test and if its 'unicode' use the other test.
going to push soon, let me know if its better.
Hmm, do you think there could be a way to do something similiar with the JSON renderer instead of using the UnicodeJSONRenderer class?