use unpack instead of ord to stay compatible with 1.8.7