Fixed #22565 -- Prevented pgettext_lazy crash with bytestring input

Thanks ygbo for the report.