Fixed crash when using non-URL safe characters in preset and object names. Fixes #2.