Support multibyte directory name

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