public function getName($quoted = false) {
		if (!$quoted) return $this->name;
		
		$quotedName = addcslashes($this->name, "\0..\37\177\\\"");
		// check if name needs to be quoted
		if ($this->name == $quotedName && !preg_match('/[^A-Za-z0-9!#$%&\'*+\/=?^_`{|}~ -]/', $this->name)) {
			return $this->name;
		} else {
			return mb_encode_mimeheader($quotedName, 'utf-8', 'Q', "\r\n");
			// return "\"{$quotedName}\"";
		}
	}