Updates bouncycastle to 1.50 and build debian source package.
Fixes history corrupting records when they contain utf chars < 0x20, reported on the maiinglist by Danny van Heumen. Adds tests to reproduce this case.