Fixed bugs with ampersand in post queries