DB lab#3. Encoding buffer size fix.