prevent UnicodeEncodeError exception in content listing