fixes for photos and bad characters