Versatile encoding implementations for PHP.