viewer: Handle case where spaces are in the filename