v4, not v5.

Don't we need to be initializing "from" and "to" to something sensible if the encoding isn't present?