Finally working encoding - character not casted to string and therefore not detected by hash