Remove invalid characters from app id to prevent loading of invalid resources