Convert int to string for concatenation to exception, fixes #1564