Fixed registering an item with spaces in item name. Fixes #116