URL encoding requires string input