I ran a bunch of manual tests and both `unicode(s).encode('utf-8')` and `s.encode('utf-8')` work the same. I chose this was because of how the encoding was done at L139 below -- I'm not sure why we'd use a different pattern at L136 versus L138.