Fixed a bunch of bugs (thanks to everyone who sent reports!): spaces in
category names, spaces in .desktop filenames and an issue with .category
files that are empty or contain only comments.