Maybe if `is.character(env$QUERY_STRING)` would be safer?