More safely build filenames

This avoids an error I was getting while parsing
http://localhost:8095/foo

`invalid value for Integer(): ":"`