replace newline in x509 extension loop with whitespace