Use PHP's serialization methods from Ruby.