Improve type check so it works with unicode too
Improve type check so it works with unicode too

okuta/chainer,wkentaro/chainer,chainer/chainer,keisuke-umezawa/chainer,pfnet/chainer,hvy/chainer,chainer/chainer,niboshi/chainer,keisuke-umezawa/chainer,hvy/chainer,chainer/chainer,wkentaro/chainer,wkentaro/chainer,okuta/chainer,niboshi/chainer,wkentaro/chainer,keisuke-umezawa/chainer,hvy/chainer,okuta/chainer,niboshi/chainer,keisuke-umezawa/chainer,niboshi/chainer,hvy/chainer,okuta/chainer,chainer/chainer