fixed #19 (shortening the text can create an invalid request)