str: Add str2mac helper function