do not decode twice
fix failing tests for py3