Replaced GenericStringHeader helper class with C utility function in core

darcs-hash:20090226173615-58103-14b214b0f79bac9cf348f87aeeae96f2cd7b0a50