Handle bad file encodings when importing CSV files #1140

Convert the file encoding to UTF-8.
Fall back to original data if preg_replace fails for some reason
Use php native extension check function, and remove Modulecheck library

Conflicts:
	application/controllers/scheduler/s_email.php