Utils for serialize/un-serialize Scala object to PHP serialized string