Update crlf and lfcr scripts for 3.x bytes semantics (#12032).

Changes to crlf originally by Victor Stinner for 3.3, copied to lfcr by
me.  Manually tested.
2 files changed