use Pd-0.45-5-64bit.app on osx
fixes typo encode to encoding
optimization for flags object