Some ruby 1.9 and encoding stuff

Hi,

please have a look at my patches. Now everything works for ruby 1.9 and utf8 encoded filesystem. Tested with gnome nautilus and davfs clients. Sorry no specs yet.