Should make it work on big endian systems again, I do not have such a system. This closes #9093. SVN-Revision: 26543
SVN-Revision: 25472
Thank you clemvangelis for the patches. (closes #7672) SVN-Revision: 24217