replace uri_escape() by uri_escape_utf8() to handle quotes etc.