encode the octothorpes