prevent null byte[] in case of encoding exc

in theory the byte array could be null if an exception occures (which wont happen in praxis). i would additionally suggest to use "ascii" encoding as well for armoured stuff but i am no expert on that. i changed the printStackTrace as well as i considere this not correct for logging on android.