Serialize data hash into query params for a GET request

What would you think about just putting the common method in net/ajax.js, since that's used in net/form anyway?