Fixed a crash when a short input contains data not valid in
  filenames. [bug=1232604]
3 files changed