It does seem a bit unnecessary, especially since the `.unwrap_or('\x00')` trick used elsewhere could have been used in these matches.