Added slow versions of decode/encode string.