added encoding function, decoding now accepts all dots/dashes and spaces