fix failure when opening scalar ref that contains wide character
Merge pull request #1 from ytnobody/master

fix failure when opening scalar ref that contains wide character