Replaced curry with a class

Signed-off-by: emanuele <emanuele45@gmail.com>
And let's try to replace the curry completely - thanks @silentguardian for the idea!

Signed-off-by: emanuele <emanuele45@gmail.com>
! no need to check if thats utf8 for us
! tweak the docblock

Signed-off-by: Spuds <spuds@spudsdesign.com>
! remove callback for a basic search and replace to save memory

Signed-off-by: Spuds <spuds@spudsdesign.com>
! stop error in some rare cases

Signed-off-by: Spuds <spuds@spudsdesign.com>
Merge pull request #1359 from Spuds/Leaking

Memory Issues