Fix unicode issue with profile directory parsing (includes method)