Fix newline at EOF in .gitignore.
Use a proper filename for persisted reports.
Use .pdf_name when porting visible filenames for result report attachments.
Also transliterate name part in pdf_name.
Merge remote-tracking branch 'origin/1-0-stable'
Use last case.doctor for patient.doctor as fallback.
Update CHANGELOG for 1.0.5.