Save selected rows when the file tree updates.
Fixed a badarg error in jsx:encode/1, when remote client's version is in latin1.