Fixes bug with URL encoding. (thanks, Will!)