Finish last TODO, fix boundary parsing bugs, and add a UTF-7 decoder