Fix #1153: AgaviStringValidator trimming fails on newlines