remove trailing dots in route refs