Adding URL
Adding "api_" in function inside main_api.lib.php
Replacing main_api.lib.php with api.lib.php
Adding comments, fixing URL
Moving "platform_charset" to the configuration.php see #6244
Return utf-8 by default or the configuration['platform_charset'] value