Improved cert subject parsing