Fix: Remove sun internal import, and use Apache Codec instead
We were previously encoding public keys using internal APIs, which are unpredictable, and are Java implementation specific. Using Apache Codec removes this possibly breaking reference