[modulehandler] the target needs to be encoded, too