gitweb: Fix fallback mode of to_utf8 subroutine