Fix location counting for UTF8 characters