encode review input