Escape special characters in the console