Truncate too long policy names.

see #513