Extend max_length for char fields to 1024

This fixes #297.