Support multibyte directory name

This pull-request based on GH-20 by @naoto.