session file encoding

Signed-off-by: Arnaud Richard <a.richard@webshell.io>