Failed Ajax request or invalid JSON returned trying to upload file to 3.3.0.13

Same issue as here: Pasting text OJS 3.2.1.1 but no solution. This has worked without issues since OJS 2. How on earth is the browser distinguishing between text that is typed manually and text that is pasted? No special charcters when viewing the source either.