fix an encoding issue in safari

fixes https://github.com/owncloud/core/issues/4244

ping @icewind1991