Sanitize filepath in utils.serveStaticFile()

Static files are often served with a cache-busting parameter, such as /static/js/foo.js?ver=abc123. This patch strips out any URL parameters using only the path section.