This is a bit dodgy. Use nodejs's query.parse