You can switch gawk to byte-mode by using the -bE instead of -E in the shebang:
#!/usr/bin/gawk -bE BEGIN { printf "%c",255 }