-Fixed bug in QueryStringBuilder that was not respecting the order of the parameters in the function encode. HashMap does not guarantee that the order of the elements is the same as the insertion order.
-Changed string switch to allow compilation on Java versions prior to 7.0