Fixed dialog of categories: handling of spaces in category names.