NewEncoder moved to place of the old one