Fixes memory issue with URL encoded characters