make DER encoding of EC handle unusual representation