Factor out a method to convert a C3D file to a String.