fix character offsets to be byte offsets