Add "locale" parameter to query_string and simple_query_string

Fixes #5128