Fixed callback encoding error.