Fixed problems with restoring session unls containing multiple '#' characters.

Leo build: 20141120191738