This should fix the issues mentioned in #58. I've manually tested the upload of an image file which contains umlauts in the filename, and getting posts by a tag containing umlauts.
Unfortunately, I had problems mocking the open function in the UnitTests. That part was commented, so I guess I wasn't the only one. ;) With open mocked, mimetypes.guess_types hangs infinitely. I could work around that by mocking guess_types as well, though that means mocking away part of what we want to test. It's better than nothing, though.
This should fix the issues mentioned in #58. I've manually tested the upload of an image file which contains umlauts in the filename, and getting posts by a tag containing umlauts.
Unfortunately, I had problems mocking the open function in the UnitTests. That part was commented, so I guess I wasn't the only one. ;) With open mocked, mimetypes.guess_types hangs infinitely. I could work around that by mocking guess_types as well, though that means mocking away part of what we want to test. It's better than nothing, though.