Encoder reuse did not always reinitialize the input Signed-off-by: Luca Fulchir <luker@fenrirproject.org>