Storing serialized PHP string variables in MySQL textfields might lead to errors. Adding an additional encoding layer (base64) to the process keep these errors from happening.
This post descibes the process and provides two functions for serialization and deserialization