last change was wrong: encode is necessary.