Renamed decode to encode

Since this is the correct name...
String decoding method in infra