numpy/numpy — pull request #3765 by charris (2013-09-19 17:03:30+00:00)
Title: BUG: Fix issue with PR #3491

Don't convert unicode string to ascii string before getting byte length.
Also, get length of non string type as ascii or unicode depending on
output string type.