Fix wchar cursor movement.