Remove invalid characters from app id to prevent loading of invalid reso...

...urces