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