Fixes unicode in rank_fonts function'