Utils#params method to serialize obj to query string