I believe the issue might be in the line:
managesieve_sieve_capability = fileinto reject envelope encoded-character vacati on subaddress comparator-i;ascii-numeric relational regex imap4flags copy includ e variables body enotify environment mailbox date ihave
It seems to have line breaks and odd spacing in it.
It's not in the dovecot.conf file, where might I edit this?