Fix certificate encoding selection for --certform and --keyform

Setting the certificate format via flags will cause the `is` comparison to fail, always causing an error to be raised. This seems to happen because the passed string is not interned.