fix ASCII out of range errors