Fix bug where period in photo name causes 404.