If this is a helper function, the name should be prepended with underscore.  And if the query string is no longer being passed, the function should be renamed to be clearer.  And the information above about encoding / should be added to the docstring below.