Fix parsing of weird req.originalUrl values

closes #13