Hi Eco,
The trick is that the start of the image encoded image is only needed to show it as picture in the browser. It is not needed in the Image conversions.
To solve the issue you need to remove the first 22 characters on the string, just before put in the encoding java action.
substring($signature/string, 22)
Cheers Andries