libserialize: Prefer into_string() to to_string() wherever possible
libserialize: Code cleanup