Fixed bugs preventing signing from taking arbitrary formats