made the query string fix PHP 5.3 friendly

(#191)
thanks @Gautham for the fix and explanation about how 5.3 is different.