Small utility to encode/decode init options as a string