BUG: Add unicode check for Python 2.7