[#130] Added tests for escaping more than one ~.