Accept strings for encoding