Validate configuration in mojito-jscheck and use encodeURIComponent wherever needed