Refactor processing of ASCII