Converts an array of headers into a \r\n-delimeted string Accepts three formats: - Strings will be passed through as is. - Arrays of strings (with numeric keys) will be used as-is - Arrays of strings (with string keys) will be joined using : to separate the key and value. Also, values containing quotes or spaces will be quoted.