Only get UTF-8 position if the string is using UTF-8.