Fixed #1282: Relax maxlen option in some situations.

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>