Escape only ESC and \r char.

Leave certificate prompt from sxinit as it was before. The string contains newlines
and is printed using default log functions.