Added parameter to conversion from UTF-8 to locale, to return the number