My WordPress site is hosted on a Apache server on which the apache module mod_security is running.
By adding the following two lines to the .htaccess file the problem was fixed:
SecFilterEngine Off
SecFilterScanPOST Off
My apologies for thinking it was caused by WordPress.