lua: util.color:asHex produces wrong output for some colors

Some colors with zeros in their hexadecimal representation are not displayed correctly (e.g. in scripts settings).

Example in the lua console:

Lua[Player] util.color.hex('012034')
(0.00392157, 0.12549, 0.203922, 1)
Lua[Player] util.color.hex('012034'):asHex()
102034

Hex value is parsed correctly but, when converted back to hexadecimal, the zero is swapped. I don't know where is asHex code to check, maybe '0' padding is put on the wrong side.

Tested on Fedora 42, using OpenMW from flathub beta:

          ID: org.openmw.OpenMW
         Ref: app/org.openmw.OpenMW/x86_64/beta
        Arch: x86_64
      Branch: beta
     Version: 0.49.0
     License: GPL-3.0-or-later
      Origin: flathub-beta
  Collection: org.flathub.Beta
Installation: system
   Installed: 139,6 Mo
     Runtime: org.kde.Platform/x86_64/6.8
         Sdk: org.kde.Sdk/x86_64/6.8

      Commit: afa4e2f3116212201165946ddfeb6a4af42675020528df39e4958ef7d6409933
      Parent: 3ba51376d08ac71a57f630db15c885585d554eb47a35ae67edc84e0063d70f87
     Subject: Merge pull request #51 from flathub/beta-update (01fbbfd7af86)
        Date: 2025-04-29 07:04:26 +0000