allow both -n and escape chars for echo