FsUtils.querystring_from_hash is encoding the hash values rather than a copy of the hash values. It should not modify the original hash.