fix bug in encode(), decode(); value must have 'URI:' prefix