add full restriction for invalid characters in the program path