best effort to include some error message rather than 'too long error message'
increased rewrite_query_string_buffer from 1024 bytes to 32768 bytes