Fixed encoding problem with endpoint from config file