Improve unserialize

Add unused part check to unserializer
Combine pieces without full blown character by character check