Replace MAX_*_SIZE with a single MAX_FIELD_VALUE_SIZE
Code style
Fix utf8 cookie keys