add encoding for forbidden APIs