Fix regressed > 256 buffer size issue. Fixes #437.