Unicode checking only applies to Python 2

This tackles #231