Use 'pack' instead of 'fromString' for compatibility with older base versions.