fixed bug where underscore or hyphen in template of url would break REST...

... requests