Fix for bug #3553 to prevent future issues with big endian CPUs.