Improved parsing of x.509 purpose flags