TINSEL: Fix incorrect byte swapping on BE systems (bug #3614416)

This is a regression from commit c90d56355fa0bbcdd3122f3e376e5609422338b3
Thanks to canavan for his testing and bisecting work