let wname = if let Some(fname) = fname {
// workaround for libSDL2 workaround for non-UTF8 windowing systems
// see https://github.com/libsdl-org/SDL/pull/4290 for detais
- let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-");
+ let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-").replace('\u{2014}', "-");
"NihAV player - ".to_owned() + &nname
} else {
"NihAV player".to_owned()