Enhanced query string parser for Erlang