Spaces in parameter values were causing errors to be thrown due to encoding not being continous