Fixed bug - needed to use encodeURI for sb_item when loading a sample to handle filenames with spaces.