MDL-43389 webdav: webdavlib expects charset on content-type

Some webdav servers dont output the charset on the content-type as default. This is stopping moodle from being able to retrieve files from the server as it is expecting the charset of UTF-8 and silently fails without it. I have changed the pattern match on the content-type header so that the charset is optional.