Port old constructor of YAML's binary type.