Solve encodings issues in the media library