BUG: Avoid a numpy crash seen when using a data source of a unicode array.

I have found it difficult to extract a case that reliably crashes in all
circumstances, so I find it difficult to report it upstream.