ENSCORESW-1129: moved BED serializing logic to core directory, in Utils/IO