Bug/gifti hcp caret fixes

hcp workbench were not able to open gifti files generated by nibabel:
- endianness value not conform
- base64 in python < 3 add newlines which seems a problem for hcp tools, do not know about python3 base64.encodebytes output

@matthew-brett ?

https://github.com/nipy/nibabel/issues/230