Fix a bug with non-Unicode "new" and unicode ->distance.