Repository: DirectoryTree/ImapEngine (php)

Issue:
Can't parse word with accent
Hello,

French developper here, i try to search word in subject like "Joué" : 
`$messages = $inbox->messages()->withHeaders()->withBody()->subject('Joué')->get();`

And get this ImapCommandException : 
`IMAP command "TAG4 UID SEARCH SUBJECT "Joué"" failed. Response: "TAG4 BAD Could not parse command"`

The search without word with accent work well like "Hello world" 👍 

**Environment**
- **PHP version:** 8.3
- **ImapEngine version:** 1.13.2
- **IMAP server:** Gmail

**IMAP logs**
2025-05-20 16:16:46: << TAG3 OK [READ-WRITE] INBOX selected. (Success)
2025-05-20 16:16:46: >> TAG4 UID SEARCH SUBJECT "Joué"
2025-05-20 16:16:47: << TAG4 BAD Could not parse command




Pull request description:
Convert query values to UTF-7
Closes #69 

Patch:
diff --git a/src/Connection/ImapQueryBuilder.php b/src/Connection/ImapQueryBuilder.php
index facbea6..0054655 100644
--- a/src/Connection/ImapQueryBuilder.php
+++ b/src/Connection/ImapQueryBuilder.php
@@ -440,7 +440,7 @@ class ImapQueryBuilder
         if ($where['value'] instanceof RawQueryValue) {
             $part .= ' '.$where['value']->value;
         } elseif ($where['value']) {
-            $part .= ' "'.$where['value'].'"';
+            $part .= ' "'.Str::toImapUtf7($where['value']).'"';
         }
 
         if ($where['not']) {
diff --git a/src/FolderRepository.php b/src/FolderRepository.php
index d20419f..edd1a69 100644
--- a/src/FolderRepository.php
+++ b/src/FolderRepository.php
@@ -20,7 +20,7 @@ class FolderRepository implements FolderRepositoryInterface
      */
     public function find(string $path): ?FolderInterface
     {
-        return $this->get($path)->first();
+        return $this->get(Str::toImapUtf7($path))->first();
     }
 
     /**
@@ -28,7 +28,7 @@ class FolderRepository implements FolderRepositoryInterface
      */
     public function findOrFail(string $path): FolderInterface
     {
-        return $this->get($path)->firstOrFail();
+        return $this->get(Str::toImapUtf7($path))->firstOrFail();
     }
 
     /**


Test patch:
diff --git a/tests/Unit/Connection/ImapQueryBuilderTest.php b/tests/Unit/Connection/ImapQueryBuilderTest.php
index 8035f30..cd2760e 100644
--- a/tests/Unit/Connection/ImapQueryBuilderTest.php
+++ b/tests/Unit/Connection/ImapQueryBuilderTest.php
@@ -220,3 +220,11 @@ test('compiles raw value', function () {
 
     expect($builder->toImap())->toBe('FOO bar');
 });
+
+test('converts values from utf-8 to utf-7', function () {
+    $builder = new ImapQueryBuilder;
+
+    $builder->where('foo', 'Joué');
+
+    expect($builder->toImap())->toBe('FOO "Jou&AOk-"');
+});