added error handling for session dump of non-utf8 characters
fixed cluster sorting
Merge pull request #172 from paczian/master

stm dump bugfix and heatmap error handling