changed str::from_utf8_lossy to String::from_utf8_lossy