Illegal invocation error on Array.map(new TextEncoder().encode)

Spoilers: it's .bind()'s fault again... and an unhelpful error message to lead you astray.