Fixed bug in utf-8 comparing thanks to pcuriel