title: Invalid characters and post-update-cmd error on composer update Laravel
body: <p>When I try to update any dependencies I get the error below:</p>
  <pre><code>1 - [ErrorException]                                                             
    Invalid characters passed for attempted conversion, these have been ignored
  
  2 - Script php artisan optimize handling the post-update-cmd event returned with error code 1
  </code></pre>
  <p>Composer file:</p>
  <pre><code>    {
      &quot;name&quot;: &quot;laravel/laravel&quot;,
      &quot;description&quot;: &quot;The Laravel Framework.&quot;,
      &quot;keywords&quot;: [
          &quot;framework&quot;,
          &quot;laravel&quot;
      ],
      &quot;license&quot;: &quot;MIT&quot;,
      &quot;type&quot;: &quot;project&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;&gt;=7.4.3&quot;,
          &quot;laravel/framework&quot;: &quot;5.2.*&quot;,
          &quot;league/flysystem-aws-s3-v3&quot;: &quot;~1.0&quot;,
          &quot;yajra/laravel-datatables-oracle&quot;: &quot;~6.0&quot;,
          &quot;laravel/socialite&quot;: &quot;^2.0&quot;,
          &quot;skovmand/mailchimp-laravel&quot;: &quot;1.*&quot;,
          &quot;barryvdh/laravel-dompdf&quot;: &quot;0.6.*&quot;,
          &quot;google/cloud&quot;: &quot;^0.135.0&quot;,
          &quot;superbalist/flysystem-google-storage&quot;: &quot;^7.2&quot;,
          &quot;php-ffmpeg/php-ffmpeg&quot;: &quot;^0.16.0&quot;
      },
      &quot;require-dev&quot;: {
          &quot;fzaninotto/faker&quot;: &quot;~1.4&quot;,
          &quot;mockery/mockery&quot;: &quot;0.9.*&quot;,
          &quot;phpunit/phpunit&quot;: &quot;~4.0&quot;,
          &quot;symfony/css-selector&quot;: &quot;2.8.*|3.0.*&quot;,
          &quot;symfony/dom-crawler&quot;: &quot;2.8.*|3.0.*&quot;
      },
      &quot;autoload&quot;: {
          &quot;classmap&quot;: [
              &quot;database&quot;
          ],
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;app/&quot;
          }
      },
      &quot;autoload-dev&quot;: {
          &quot;classmap&quot;: [
              &quot;tests/TestCase.php&quot;
          ]
      },
      &quot;scripts&quot;: {
          &quot;post-root-package-install&quot;: [
              &quot;php -r \&quot;copy('.env.example', '.env');\&quot;&quot;
          ],
          &quot;post-create-project-cmd&quot;: [
              &quot;php artisan key:generate&quot;
          ],
          &quot;post-install-cmd&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postInstall&quot;,
              &quot;php artisan optimize&quot;
          ],
          &quot;post-update-cmd&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postUpdate&quot;,
              &quot;php artisan optimize&quot;
          ]
      },
      &quot;config&quot;: {
          &quot;preferred-install&quot;: &quot;dist&quot;
      }
  }
  </code></pre>