Add support for dashes in the resources paths'.

Split the request path in folder/filename, then fix the dashes in the folder. Afterwards put it back together and replace "/" by "." as originally.