fix bug #5675: Add explicit encoding line to wrapper.conf
fix bug #6217 properly: workaround setups where 'java' is a shell script
operhiem1 is right; we need an existence check too
Get rid of old CAs we were using in the past
Update to Bouncy Castle 1.51

Uses 8dd9a6577d5499c572130f6fd739350449851c50 and
b5b20e23505345091be6fe19c2daab8dcc711029 for reference on what needed to
be changed.