Added url2pathname function to compat module
Made filters fully aware of source file charset (filename argument). Filters are now fully responsible for decoding data from bytes to string.