encode/decode URI components in plugins