fix unicode errors when content returns unicode