remove encode function from sessionService
Merge "remove encode function from sessionService" into 0.3.x