Periods in methods breaks links

Something like {id}.json doesn't work. I fixed it by adding period to the list of characters converted to "_" in makeUniqueId(), but not sure if this is valid in the first place as I am new to RAML.