Fix for bitcoinjs signing incorrectly. https://gist.github.com/dcousens/7a54e59a98e445c5ec2f