Fix unicode bug in ranked relevance