Utility functions for dealing with HTML query strings