Replace regex-based parser in console.listen() with uri.parse()