Fix bytes on asset generate_serial. See merge request !3502 (cherry picked from commit ccc54eed) 5f24f8ba Fix bytes on asset generate_serial.