fix create folder/file named "0"

issue #146.
Tested only for the local adapter.