moved regular expressions to a single file
moved encoding and regexp to contrib module