fix image url handling for unicode