Fix MSB issues with DER encoding