Fixing Date.replaceChars references

Earlier refactoring missed the Date.replaceChars within some functions. This have been refactored accordingly. Fixes #3