fixed memory leak in REVKActivity in encoding string function