xcbgrab: Support empty filename string correctly