Fix warning

This is the warning:
https://www.exceptional.io/exceptions/228000586

Unfortunately, there's no backtrace, so I have no idea if this is actually where the warning is coming from.  But it appears to be the only place outside tests where we use that method.  And it is a DOS vector (if a relatively weak one).