Replace spaces with underscores for displaynames and categories