Fix encoding in lib/Data.php. added simple Registry implementation