Fixed the issue with caching and unicode

https://joindin.jira.com/browse/JOINDIN-318