I finally found the source of the error. If I run the development server inside a truecrypt drive the error occurs. If I run it outside the error is gone. So it seems to be a problem with how truecrypt is handling files.