fix: removes double encode for flag