uncommitted work on mac.
fix toBase2String()