more encoding tests. #424