Fixed Android PEM key reading bugs