take into account unicode characters