Use PHP's built in http_build_query instead of rolling your own.
Merge pull request #8 from ChrisReid/patch-1

Use PHP's built in http_build_query instead of rolling your own.