escape /{,*/}/ properly