math.huge prints as 'math.huge' rather than 'inf'

math.huge == inf (at least in LuaJIT), but when writing math.huge as the
string inf, the value cannot be read by e.g. dofile.