Handle str and bytes better in crypto (loading and signing)