Php serialized string must be represented as a string when being parsed as php