initial import of base conversion from PEPs.