Cast signature as JSON string before saving