Escape message properly when building a command line.