Fix 'TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode''

This comes when using from __future__ import unicode_literals