Write a function to serialize a binary tree into a string, and another function to deserialize that string back into the original binary tree structure.