Fix #1243: AgaviStringValidator trimming fails on newlines