to_bencoded_string -> as_bencoded_string.

Django convention is to name functions `as_X` when we're just altering the
view and not the underlying model.