It does fine with quotes but chokes on newlines.