Don't rely on serialization format.

Should fix Travis builds.