Fixes weird issue, where looking for regexp character somehow failed when the string had non-ascii characters
Fixes issue caused by directly returning the result of implode() from method