Fixed API request failing if any param contained an equals sign.