Fixed string out of bounds exception in hex viewer on os x.
Don't get a character that's out of range.
Merge pull request #387 from jawallace/hex_viewer

Fix string out of bounds exception on non-windows.