SLICE-60 added toEscapedString method to enable construction of w3c valid links