fixed non-compatibility with ASCII