another attempt to encode multi-word strings