When deploying with a custom maintenance.html that has quotes. An example would be with images single quoted instead of double quoted. The failures in the log look like this:
<Exception during deploy: #<Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT>
due to the change performed in 249bbb8