How to restrict metacharacter from names?

@miriamgomo, I have not tried this out with the language you have pointed out (due to my language barrier). However, this post discussed could give you a clue that it should work: