Fixed debug output
Fixed a bug with quotes being in query strings