ENH: core: make unpickling with encoding='bytes' work

When loading Py2-generated pickles on Py3, it may be sometimes useful to use `pickle.load(..., encoding='bytes')` instead of `encoding='latin1'`.

This is currently blocked by `dtype.__setstate__` not accepting the endian as a byte string.
There's not really a good reason to not support this, so we could change it, as below.

The routine also seemed to have some old bug with missing error return, so fix that too.
how about something like this: https://github.com/juliantaylor/numpy/commit/930e908e89c6a1ddedf839f605db8f52dca5e8da