Fix bug with single control chars.
Was causing infinite loop.