Just used the endian.h functions to convert host endian to and from big endian.
Doesn't make sense for them to be in the VM module when they have a more general purpose now.