Fix str/unicode representer crashing on plain-emitted strings ending with newline

Also don't use "plain" for stuff that starts with known not-allowed chars.