urlencode for non-ascii strings