Fixed bug where decoder wouldn't get the whole encoded string if it contained '/'.