UrlEncode now handles strings of all lengths

PR for #267