Fixing an edge case in Request::format.

No slashes can follow a dot if that dot is to be used to show the
requested filetype.